package com.itheima.mapper;

import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderMapper {
    int addOrder(Order order);

    Map<String,Object> findDetailById(@Param("id") int id);

    int getOrderCountsByDay(@Param("today") String today);

    int getOrderCountsByVisitsAndDay(@Param("today") String today);

    int getOrderCountsByWeek(@Param("thisWeekMonday") String thisWeekMonday, @Param("today") String today);

    int getOrderCountsByWeekAndVisits(@Param("thisWeekMonday") String thisWeekMonday, @Param("today") String today);

    int getOrderCountsByMoth(@Param("firstDay") String firstDay, @Param("today") String today);

    int getOrderCountsByMothAndVisits(@Param("firstDay") String firstDay, @Param("today") String today);

    List<Map<String,Object>> rankOrderBySetMealCounts();

}

